home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_400 / 414_02 / portable / nonl.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-06-17  |  1.2 KB  |  49 lines

  1. #define    CURSES_LIBRARY    1
  2. #include <curses.h>
  3. #undef    nonl
  4.  
  5. #ifdef PDCDEBUG
  6. char *rcsid_nonl = "$Header: C:\CURSES\portable\RCS\nonl.c 2.1 1993/06/18 20:19:19 MH Rel MH $";
  7. #endif
  8.  
  9.  
  10.  
  11.  
  12. /*man-start*********************************************************************
  13.  
  14.   nonl()    - disable newline control
  15.  
  16.   X/Open Description:    nonl()
  17.      This function disables the translation of newline into a
  18.      carriage return and a line-feed on output, and a carriage return
  19.      is translated into a newline on input.  Initially, the translations
  20.      do occur.  By disabling these translations, curses is able to
  21.      make better use of the line-feed capability, resulting in faster
  22.      cursor motion.
  23.  
  24.   PDCurses Description:
  25.  
  26.   X/Open Return Value:
  27.      The nonl() function returns OK on success and ERR on error.
  28.  
  29.   X/Open Errors:
  30.      No errors are defined for this function.
  31.  
  32.   Portability:
  33.      PDCurses    int nonl( void );
  34.      X/Open Dec '88    int nonl( void );
  35.      BSD Curses    nonl() defined as a macro
  36.      SYS V Curses    int nonl ( void );
  37.  
  38. **man-end**********************************************************************/
  39.  
  40. int    nonl(void)
  41. {
  42. #ifdef PDCDEBUG
  43.     if (trace_on) PDC_debug("nonl() - called\n");
  44. #endif
  45.  
  46.     _cursvar.autocr = FALSE;
  47.     return( OK );
  48. }
  49.